package JavaSE.StreamLearning.Reader.FileReader.Test;

import java.io.FileReader;
import java.io.IOException;

/**
 *  测试 字符输入流读入文本数据
 */
public class Test {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("src\\JavaSE.StreamLearning.Reader\\FileReader\\JavaSE.StreamLearning.Reader.JavaSE.SETest\\a.txt");
        int readCount;
        char[] chars = new char[1024];
        while((readCount=fr.read(chars)) != -1) {
            System.out.print(new String(chars,0,1024));
        }
    }
}
